﻿using System.Collections.Generic;
using System.Text;
using CID.Execution.Support.Information;
using CID.Execution.Support.TemplateHandling;

namespace CID.Execution.Agent.Tests.Support
{
    class TemplateHandlerStub : ITemplateHandler
    {
        public static readonly List<ParameterValueInfo> ParameterValues = new List<ParameterValueInfo>();
        public static readonly List<ParameterValueInfo> AdditionalParameterValues = new List<ParameterValueInfo>();

        public static void ClearLists()
        {
            ParameterValues.Clear();
            AdditionalParameterValues.Clear();
        }

        public void ExecuteTemplate(TemplateInfo template, IEnumerable<ParameterValueInfo> parameterValues, IEnumerable<ParameterValueInfo> additionalParameterValues, IEnumerable<ServerInfo> targetServers, StringBuilder detailsBuilder)
        {
            ParameterValues.AddRange(parameterValues);
            AdditionalParameterValues.AddRange(additionalParameterValues);
        }
    }
}
